package cn.kgc.springcloud2038.order80;

import com.netflix.loadbalancer.RandomRule;
import feign.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

//@RibbonClient(name = "CLOUD-PAYMENT-SERVICE",configuration = RandomRule.class)
@SpringBootApplication
@EnableHystrix
@EnableEurekaClient
@EnableFeignClients
public class MainApp80 {
    public static void main(String[] args)
    {
        SpringApplication.run(MainApp80.class,args);
    }
    @Bean
    Logger.Level feignLoggerLevel()
    {
        return Logger.Level.FULL;
    }
}
